package braden.cis.uab.edu.automaton;

public class StatePair {
	private final State left;
	private final State right;

	public StatePair(State left, State right) {
		this.left = left;
		this.right = right;
	}

	public State getLeft() {
		return left;
	}

	public State getRight() {
		return right;
	}

	@Override
	public boolean equals(Object o) {
		if (o == null)
			return false;
		if (!(o instanceof StatePair))
			return false;
		StatePair pair = (StatePair) o;
		if ((this.left.equals(pair.getLeft()) && this.right.equals(pair
				.getRight()))
				|| (this.left.equals(pair.getRight()) && this.right.equals(pair
						.getLeft()))) {
			return true;
		} else {
			return false;
		}
	}
}
